<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/11 011
 * Time: 9:31
 */
namespace App\Pizza;

abstract class Pizza
{
    public $name;
    public $dough;
    public $sauce;
    public $toppings = array();

    public function prepare()
    {
        echo ("Preparing " . $this->name. "<br />");
        echo ("Tossing dough ". $this->dough. "<br />");
        echo ("Adding sauce ". $this->sauce. "<br />");
        echo ("Adding toppings:<br />");
        foreach($this->toppings as $topping)
        {
            echo ("  ".$topping."<br />");
        }
    }

    public function bake()
    {
        echo ("Bake for 25 minutes at 350<br />");
    }

    public function cute()
    {
        echo ("Cutting the pizza into diagonal slices<br />");
    }

    public function box()
    {
        echo ("Place pizza in official PizzaStore box<br />");
    }

    public function getName()
    {
        return $this->name;
    }
}